package org.potomak.patientmanager.gui;

import java.util.Comparator;

import org.potomak.patientmanager.beans.model.CheckUpBean;

/**
 *
 * @author mobile
 */
public class CheckUpsComparator implements Comparator {

    public int compare(Object obj1, Object obj2) {
        CheckUpBean cu1 = (CheckUpBean)obj1;
        CheckUpBean cu2 = (CheckUpBean)obj2;
        
        return cu1.getDate().compareTo(cu2.getDate());
    }
    
}
